﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ms_page.master" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Report" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script src="Scripts/wz_tooltip.js" type="text/javascript"></script>
     <!-- BEGIN ===== ADD/EDIT Item - SEARCH PANEL -->
<div id="profile_frame" style="width:100%"><!-- thong tin lien he -->

<asp:Panel runat="server" ID="SearchPanel">

<div style="height:25px">
        <span style="color:Red"><asp:Label ID="lbThongBao" runat="server"></asp:Label></span>
    </div>
       <h5>Danh sách công việc</h5>
    <fieldset>
        <legend>
            <span class="title">Tìm kiếm</span>
        </legend>
        <div style="text-align:left" id="ANdiv" class="title">
        </div>
    </fieldset>
    <br />
    <fieldset>
        <legend>
            <span>Danh sách</span>
        </legend>
        <div id="gvrd" align="center" style="margin-top:10px; width="100%" >
            <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" BackColor="White" 
                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                CellSpacing="1" EnableModelValidation="True" GridLines="None" 
                AllowPaging="True" Width="100%" 
                onpageindexchanging="grid_PageIndexChanging" PageSize="100" 
                 >
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <HeaderStyle CssClass="thead"  Font-Bold="True" ForeColor="White"  Font-Size="12px" />
                  <Columns>
                    <asp:TemplateField HeaderText="STT" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%-- <a id="link" title="Xem Chi Tiết" onclick="ShowProcessPopup('<%# Eval("Id") %>');return false;"></a>--%>
                              <%# Container.DataItemIndex + 1 %>      
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="center" Width="20px" ForeColor="Black" />
                    </asp:TemplateField>
                      <asp:TemplateField HeaderText="Tên công việc" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%--<a href='ReWorking.aspx?Id=<%# Eval("Id")%>' onmouseover="Tip('CẬP NHẬT TRẠNG THÁI CÔNG VIỆC')" onmouseout='UnTip()' ><%#Eval("WorkName")%></a>--%>
                             <%#Eval("WorkName")%>
                        </ItemTemplate>
                          <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="left" Width="220px" CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày y/c" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%#String.Format("{0: dd/MM/yyyy}",Eval("CreateDate"))%>
                        </ItemTemplate>
                          <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="left" Width="100px" CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <%-- <asp:TemplateField HeaderText="Ngày hoàn thành" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%#String.Format("{0: dd/MM/yyyy}",Eval("ToDate"))%>
                        </ItemTemplate>
                          <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="left" Width="100px" CssClass="Grid_Row" />
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="Người làm" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%#Eval("Author")%>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Center" Width="80px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="Tổng" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%#Eval("Tong") %>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Center" Width="120px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Chỉnh sửa" HeaderStyle-HorizontalAlign="Center">
                         <ItemTemplate>
                              <%#Eval("ChuaDuyet") %>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Center" Width="100px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Đã Duyệt" HeaderStyle-HorizontalAlign="Center">
                         <ItemTemplate>
                              <%#Eval("DaDuyet") %>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Center" Width="100px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                </Columns>
                <PagerStyle CssClass="Gridpager" HorizontalAlign="Center" />
                <AlternatingRowStyle CssClass="Grid_alternative"  />
                <SelectedRowStyle CssClass="Grid_Row"/>
            </asp:GridView>
        </div>
    </fieldset>
</asp:Panel>
</div>
</asp:Content>

